<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div id="messages"><form:errors path="*" cssClass="errors" /></div>

<div class="section"><br />
<br />

<!-- 
<h6>Departure: ${departureFlightId}</h6>
<h6>Return: ${returnFlightId}</h6>
 -->


<%@include file="roundtripFlightTable.jsp"%>



<br />
<br />

<table>



<c:forEach var="i" begin="1" end="${flightQuery.numberPassengers}" varStatus="row">
<tr>
<td>Passenger ${row.index}</td><td>&nbsp;&nbsp;&nbsp;</td>
<td>U$ ${ (flightDeparting.price + flightReturning.price) }</td>
</tr>
</c:forEach>

<tr>
<td></td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td></td>
</tr>

<tr>
<td>Total Price:</td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td>U$ ${ flightQuery.numberPassengers * (flightDeparting.price + flightReturning.price) }</td>
</tr>

<tr>
<td>Total number miles required:</td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td>${flightQuery.numberPassengers * 25000} miles</td>
</tr>

 

</table>


 
<br />
<br />
<div class="buttonGroup">

<a href="${flowExecutionUrl}&_eventId=creditcard&flightId=${flight.id}">Pay With Credit Card</a>
<a href="${flowExecutionUrl}&_eventId=miles&flightId=${flight.id}">Pay With Miles</a>
<a href="${flowExecutionUrl}&_eventId=cancel&flightId=${flight.id}">Cancel</a>
 
</div>





</div>